<?php

namespace Home\Model;
use Think\Model;
class UserAddressModel extends BaseModel{
    
    //用户审核信息表
    protected $tableName = 'tp_user_address';
    
    /**
     * @desc 修改用户信息和审核信息模型
     * @author quyang
     * @update 2016-11-23
     */
    public function updateuser($where,$map,$name){
        $data = $this
                ->where($where)
                ->data($map)
                ->save();
        if($data === false){
            return $data;
        }
        //修改真实姓名
        $arr = D('Home/UsersAdditional')
            ->where($where)
            ->data($name)
            ->save();
        return $arr;
    }
}